home *** CD-ROM | disk | FTP | other *** search
- Path: pop.gnn.com!dz1
- From: dz1@gnn.com (Dmitry Zaslavsky)
- Newsgroups: comp.lang.c++
- Subject: Re: Callback Functions In C++
- Date: Fri, 12 Apr 1996 15:47:33
- Organization: GNN
- Message-ID: <4kmbo3$8mg@news-e2b.gnn.com>
- References: <4kdrfu$kiu@morse.ukonline.co.uk>
- NNTP-Posting-Host: www-28-136.gnn.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset="us-ascii"
- X-GNN-NewsServer-Posting-Date: 12 Apr 1996 19:42:59 GMT
- X-Mailer: GNNmessenger 1.2
-
- Andy Walsh writes:
- >Can anyone tell me how I could code a callback function that works
- >inside a class and that I can pass the address of to the waveInOpen
- >function. It would seem that a member function carries an extra
- >'this' pointer and so cannot be addressed the same as an ordinary
- >function.
-
- I don't know whether it'll solve your particular problem, but if you declare
- your member function as static, it won't carry that "extra 'this' pointer"
- and will look just like ordinary function to the caller.
-
- Dmitry.
-
-
-